home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / GopherTools / jughead / jughead.0.9 / dirTree.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-19  |  1.4 KB  |  50 lines

  1. /*****************************************************************************
  2.  * File:    dirTree.h
  3.  *
  4.  * Author:    Rhett "Jonzy" Jones
  5.  *        jonzy@cc.utah.edu
  6.  *
  7.  * Date:    March 27, 1993
  8.  *
  9.  * Modifed:    March 30, 1993, by Rhett "Jonzy" Jones.
  10.  *        Added PrintDirTree().
  11.  *
  12.  * Description:    Header file for use with "dirTree.c".
  13.  *
  14.  * Bugs:    No known bugs.
  15.  *
  16.  * Copyright:    Copyright 1993, University of Utah Computer Center.
  17.  *        This source may be freely distributed as long as this copyright
  18.  *         notice remains intact, and is in no way used for any monetary
  19.  *         gain, by any institution, business, person, or persons.
  20.  *
  21.  ****************************************************************************/
  22.  
  23. #define DSTR    0
  24. #define PSTR    1
  25. #define HSTR    2
  26. #define SSTR    3
  27. #define STRS    4
  28.  
  29. typedef struct dirNode { long        lineNum;
  30.              char        *str;
  31.              struct dirNode    *left,
  32.                     *right,
  33.                     *tree;
  34.                } DirTreeType;
  35. extern     DirTreeType    *dirRoot;
  36.  
  37. # ifdef USEPROTOTYPES
  38.   extern void         PrintDirTree(DirTreeType *dTree,short whichStr);
  39.   extern long         InDirTree(DirTreeType *dTree,short whichStr);
  40.   extern DirTreeType *WhatDirBranch(DirTreeType *dTree,short whichStr);
  41.   extern DirTreeType *BuildDirTree(DirTreeType *dTree);
  42.   extern void         WaterTree(char *sStr,char *hStr,char *pStr);
  43. # else
  44.   extern void         PrintDirTree();
  45.   extern long         InDirTree();
  46.   extern DirTreeType *WhatDirBranch();
  47.   extern DirTreeType *BuildDirTree();
  48.   extern void         WaterTree();
  49. #endif
  50.